#include<bits/stdc++.h>

using namespace std;

main() {
    int n;
    cin >> n;
    if (n % 4 == 0) {
        cout << n / 4;
    } else {
        cout << n / 4 + 1;
    }


}
